// Domien Nowicki
#include "QtRobotShootAnimation.h"

QtRobotShootAnimation::QtRobotShootAnimation(): robot(0)
{
}

QtRobotShootAnimation::QtRobotShootAnimation(const QtRobotShootAnimation& rhs): QtAnimationCommand(rhs), robot(rhs.robot)
{
}

QtRobotShootAnimation::~QtRobotShootAnimation()
{
}

void QtRobotShootAnimation::SetRobot(QtRobotSprite* receiver)
{
	robot = receiver;
}

void QtRobotShootAnimation::Execute()
{
	if (robot)
	{
		robot->Shoot();
	}
}

QtAnimationCommand* QtRobotShootAnimation::Clone() const
{
	return new QtRobotShootAnimation(*this);
}
